//
//  Person.h
//  LessonOC06
//
//  Created by lanou on 15/9/25.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject

@property (nonatomic, retain) NSString * name;
@property (nonatomic, assign) int        age;
@property (nonatomic, retain) NSString * sex;

- (id)initWithName:(NSString *)aName age:(int)aAge sex:(NSString *)aSex;

- (NSComparisonResult)sortByAge:(Person *)person;
- (NSComparisonResult)sortByName:(Person *)person;
- (NSComparisonResult)sortBySex:(Person *)person;

@end
